<!--
描述：招生管理-网上报名设置组件
开发人：hqj
开发日期：2018年9月4日
-->
<template lang="pug">
    keep-alive
        kalix-table(bizKey="onlineRegisterSetting" title='网上报名设置信息' v-bind:targetURL="targetURL"
        v-bind:bizDialog="bizDialog" v-bind:btnList="btnList" v-bind:toolbarBtnList="toolbarBtnList"
        v-bind:isExpandAll="isExpandAll")
            template(slot="tableColumnSlot")
                el-table-column(type="expand")
                    template(slot-scope="scope")
                        el-form(label-position="left" class="demo-table-expand")
                            el-form-item(v-for="item in scope.row.configBean" v-bind:key="item.name" v-bind:label="item.name")
                                span {{item.value}}
                el-table-column(prop="classType" label="类型" align="center")
</template>

<script type="text/ecmascript-6">
    import {configName, onlineRegisterSettingConfigURL, ORSToolButtonList} from '../../config.toml'

    export default {
        name: 'kalix-enrolment-onlineregistersetting',
        data() {
            return {
                btnList: ORSToolButtonList,
                toolbarBtnList: [
                    {id: 'add', isShow: false}
                ],
                targetURL: onlineRegisterSettingConfigURL + '?configName=' + configName,
                bizDialog: [
                    {id: 'edit', dialog: 'OnlineRegisterSettingEdit'}
                ],
                isExpandAll: true
            }
        },
        components: {},
        mounted() {
        },
        activated() {
        },
        deactivated() {
        },
        methods: {}
    }
</script>

<style lang="stylus">
    .demo-table-expand
        label
            width 200px
            color #99a9bf
        .el-form-item
            margin-bottom 0
</style>
